// 员工离职信息
import request from "@/utils/https/requests";

// 列表
export function menDimissionList(data: any) {
    return request({
        url: "/menDimission/list", method: "post", data,
    });
}

// 添加
export function postAddMenDimission(data: any) {
    return request({
        url: "/menDimission/postAdd", method: "post", data,
    });
}

// 修改
export function postModMenDimission(data: any) {
    return request({
        url: `/menDimission/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteMenDimission(id: string) {
    return request({
        url: `/menDimission/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteMenDimission = (id) => {
    return request({
        url: `/menDimission/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function menDimissionDetail(id: string) {
    return request({
        url: `/menDimission/detail/${id}`, method: "post",
    });
}